
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  /* 添加背景图和渐变叠加 */
  background: linear-gradient(
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  ),
  url('../../assets/page-background.png') center/cover no-repeat;
  /* 添加平滑滚动 */
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.login-box h2 {
  color: #333;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.login-box button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #1677ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-box button[type="submit"]:hover {
  background: #4096ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.2);
}

.login-box button[type="submit"]:active {
  transform: translateY(0);
}

/* 添加淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 480px) {
  .login-box {
    padding: 2rem;
  }
  
  .login-box h2 {
    font-size: 1.5rem;
  }
}

.login-error {
  color: #ff4d4f;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 16px;
  padding-left: 4px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.login-footer a {
  color: #1677ff;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.login-footer a:hover {
  color: #4096ff;
}

.login-footer a:active {
  color: #0958d9;
}

/* 添加下划线动画效果 */
.login-footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: #1677ff;
  transition: all 0.3s ease;
}

.login-footer a:hover::after {
  width: 100%;
  left: 0;
}

.login-footer .separator {
  color: #d9d9d9;
  font-weight: 200;
}

/* 添加响应式间距 */
@media (max-width: 480px) {
  .login-footer {
    gap: 12px;
    flex-direction: column;
  }
  
  .login-footer .separator {
    display: none;
  }
}